package com.eriloan.easyPage.listener;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 
 * <p>Copyright: All Rights Reserved</p>
 * <p>Company: 北京荣之联科技股份有限公司 http://www.ronglian.com</p>
 * <p>Description: EasyPage Controller 监听类</p>
 * <p>Author:Eric Shi/史丙利</p>
 */
public interface EasyPageListener{

	/**
	 * 
	 * <br/>Description:执行 Controller 方法前要进行的操作
	 * <p>Author:Eric Shi/史丙利</p>
	 * 
	 * @param controllerName
	 * @param methodName
	 * @param request
	 * @param response
	 */
	void beforeListrner(String controllerName,String methodName,HttpServletRequest request,HttpServletResponse response);

	/**
	 * 
	 * <br/>Description:执行 Controller 方法后要进行的操作
	 * <p>Author:Eric Shi/史丙利</p>
	 * 
	 * @param controllerName
	 * @param methodName
	 * @param request
	 * @param response
	 */
	void afterListrner(String controllerName,String methodName,HttpServletRequest request,HttpServletResponse response);
}
